package net.wsfcp.android.http.mvp.contract;

import net.wsfcp.android.bean.resultbean.OrderBean;
import net.wsfcp.android.bean.resultbean.OrderQuantityBean;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class OrderListContract {

    public interface OrderListView {

        void getOrderListSuccess(OrderBean orderBean);

        void getOrderListFail(String failMsg);

        void cancelOrderSuccess();

        void cancelOrderFail(String failMsg);

        void confirmReceiptSuccess();

        void confirmReceiptFail(String failMsg);


    }

    public interface OrderDetailView {
        void confirmReceiptSuccess();

        void confirmReceiptFail(String failMsg);

        void cancelOrderSuccess();

        void cancelOrderFail(String failMsg);

        void getOrderDetailSuccess(OrderBean.OrderList bean);

        void getOrderDetailFail(String failMsg);

    }


    public interface OrderActivityView {

        void getOrderQuantitySuccess(OrderQuantityBean bean);

        void getOrderQuantityFail(String failMsg);


    }


    public interface OrderListPresenter {
        void getOrderList(int page, int pagesize, int status);//获取订单列表

        void cancelOrder(String id);//取消订单

        void confirmReceipt(String id);//确认收货

        void getOrderDetail(String id);//订单详情

    }


    public interface OrderListActivityPresenter {

        void getOrderQuantity();//订单数量
    }
}
